]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Special-case chat notifications to use the old actor
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Feb 2015 10:18:15 +0000 (11:18 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Feb 2015 16:41:57 +0000 (17:41 +0100)
js/ui/messageTray.js

index a29d93b7ff12a5ca41ed953f4b69eb8c9285ddff..9e9f7af4c8b06747f3b7afa68db3a0a72325a558 100644 (file)
@@ -1889,7 +1889,11 @@ const MessageTray = new Lang.Class({
             this.idleMonitor.add_user_active_watch(Lang.bind(this, this._onIdleMonitorBecameActive));
         }
 
-        this._banner = this._notification.createBanner();
+        // HACK: didn't manage to get chat into a proper state in time
+        if (this._notification.source.isChat)
+            this._banner = this._notification;
+        else
+            this._banner = this._notification.createBanner();
         this._bannerClickedId = this._banner.connect('done-displaying',
                                                      Lang.bind(this, this._escapeTray));
         this._bannerUnfocusedId = this._banner.connect('unfocused', Lang.bind(this, function() {